package game;

import static org.lwjgl.opengl.GL11.*;

import org.lwjgl.util.vector.Vector3f;

public class Box {
	private Vector3f pos, size;
	private float r = 1, g = 1, b = 1;
	
	public Box(Vector3f pos, Vector3f size) {
		this.pos = pos;
		this.size = size;
	}
	
	public void update() {
		
	}
	
	public void render() {
		glTranslatef(pos.x, pos.y, pos.z);
		glScalef(size.x, size.y, size.z);
		glColor3f(r, g, b);
		glCallList(Graphics.getBoxDisplayList());
	}

	public void setColor(float r, float g, float b) {
		this.r = r;
		this.g = g;
		this.b = b;
	}

	public Vector3f getPos() {
		return pos;
	}
	
	public Vector3f getSize() {
		return size;
	}
}